package com.hlf.modules.merchant.bank.mapper;

import com.hlf.modules.merchant.bank.entity.BankCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface BankCardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BankCard record);

    int insertSelective(BankCard record);

    BankCard selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BankCard record);

    int updateByPrimaryKey(BankCard record);
    
    List<BankCard> findListbyUserId(Long userId);

	int updateCnapsCodeById(@Param(value = "id") Long id, @Param(value = "cnapsCode") String cnapsCode);
}